package view

import (
	"github.com/sirupsen/logrus"
	"miao-wails/backed/app/service"
)

func (a *App) GetScreenSize() (wh string) {
	return service.RtcSer.GetScreenSize()
}
func (a *App) MouseMove(x, y int) {
	logrus.Debugf("MouseMove(%d, %d)", x, y)
	service.RtcSer.MouseMove(x, y)
}

func (a *App) MouseClick() {
	service.RtcSer.MouseClick()
}
func (a *App) MouseDoubleClick() {
	service.RtcSer.MouseDoubleClick()
}

func (a *App) MouseRightClick() {
	service.RtcSer.MouseRightClick()
}

func (a *App) KeyDown(key string) {
	service.RtcSer.KeyTap(key)
}
